package com.chushouya.order.dto.api.partnernotify;

import com.alibaba.fastjson.annotation.JSONField;
import com.general.framework.core.lang.Dates;
import com.chushouya.order.constants.PartnerNotifyTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
@ApiModel("支付无忧付成功")
public class WalletPayNotifyDTO extends PartnerBaseNotify{
    public WalletPayNotifyDTO(){
        super.setNotifyType(PartnerNotifyTypeEnum.WALLETPAY.value());
        super.setNotifyName(PartnerNotifyTypeEnum.WALLETPAY.named());
    }

    /**
     * 订单数据
     */
    private WalletPayNotifyData data;

    @Data
    @ApiModel("支付无忧付数据")
    public static class WalletPayNotifyData{

        /**
         * 付款状态
         */
        @ApiModelProperty("付款状态")
        private String payStatus;

        /**
         * 付款金额
         */
        @ApiModelProperty("付款金额")
        private BigDecimal payAmount;

        /**
         * 签约时间
         */
        @ApiModelProperty("付款时间")
        @JSONField(format= Dates.FMT_FULL_TIME)
        private Date payTime;

        /**
         * 签约备注
         */
        @ApiModelProperty("签约备注")
        private String remark;
    }
}
